package com.zbec.mdrs.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zbec.framework.core.entity.IdEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

public class LogsVo  implements java.io.Serializable {

    private Long id;
    private String businessType;
    private String userName;
    private String operationType;
    private Date operationTime;
    private String operationStatus;
    private String operationDesc;
    private String userIp;
    private String logType;
    private Date startDate;
    private Date endDate;

    public LogsVo() {
    }

    public LogsVo(Long id, String businessType, String userName, String operationType, Date operationTime,
                  String operationStatus, String operationDesc, String userIp, String logType) {
        this.id = id;
        this.businessType = businessType;
        this.userName = userName;
        this.operationType = operationType;
        this.operationTime = operationTime;
        this.operationStatus = operationStatus;
        this.operationDesc = operationDesc;
        this.userIp = userIp;
        this.logType = logType;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp;
    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }

    public Date getOperationTime() {
        return operationTime;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public void setOperationTime(Date operationTime) {
        this.operationTime = operationTime;
    }

    public String getOperationStatus() {
        return operationStatus;
    }

    public void setOperationStatus(String operationStatus) {
        this.operationStatus = operationStatus;
    }

    public String getOperationDesc() {
        return operationDesc;
    }

    public void setOperationDesc(String operationDesc) {
        this.operationDesc = operationDesc;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getStartDate() {
        return startDate;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
}
